<h1>Cubiertas</h1>

<h3> Informaci&oacute;n B&aacute;sica </h3>


<div class="bs-old-docs">
  <div class="container">
    <?php 
        if($this->Permission->check('ServiceOrderRows.edit')){
            echo $this->Html->link('  Editar', array('controller' => 'ServiceOrderRows', 'action' => 'edit', $service_order['ServiceOrderRow']['id']),  array('class' => 'glyphicon glyphicon-plus-sign btn btn-primary btn-lg' )); 
        }
    ?>

     <?php 
        if($this->Permission->check('ServiceOrderRows.inspeccion_inicial')){
            echo $this->Html->link('  Inspeccion Inicial', array('controller' => 'ServiceOrderRows', 'action' => 'inspeccion_inicial', $service_order['ServiceOrderRow']['id']),  array('class' => 'glyphicon glyphicon-plus-sign btn btn-primary btn-lg' )); 
        }
    ?>

     <?php 
        if($this->Permission->check('ServiceOrderRows.pulido')){
            echo $this->Html->link('  Pulido', array('controller' => 'ServiceOrderRows', 'action' => 'pulido', $service_order['ServiceOrderRow']['id']),  array('class' => 'glyphicon glyphicon-plus-sign btn btn-primary btn-lg' )); 
        }
    ?>

     <?php 
        if($this->Permission->check('ServiceOrderRows.cocinado')){
            echo $this->Html->link('  Cocinado', array('controller' => 'ServiceOrderRows', 'action' => 'cocinado', $service_order['ServiceOrderRow']['id']),  array('class' => 'glyphicon glyphicon-plus-sign btn btn-primary btn-lg' )); 
        }
    ?>

     <?php 
        if($this->Permission->check('ServiceOrderRows.inspeccion_final')){
            echo $this->Html->link('  Inspeccion Final', array('controller' => 'ServiceOrderRows', 'action' => 'inspeccion_final', $service_order['ServiceOrderRow']['id']),  array('class' => 'glyphicon glyphicon-plus-sign btn btn-primary btn-lg' )); 
        }
    ?>
   
  </div>
</div>


<table class="table table-striped">
    <tr>
        <td>Tipo:</td>
        <td><?php echo $service_order['ServiceOrderRow']['tipo']; ?></td>
    </tr>
    <tr>
        <td>Medida:</td>
        <td><?php echo $service_order['ServiceOrderRow']['medida']; ?></td>
    </tr>
    <tr>
        <td>Numero de Serie:</td>
        <td><?php echo $service_order['ServiceOrderRow']['numero_de_serie']; ?></td>
    </tr>
   <tr>
        <td>Articulo:</td>
        <td><?php echo $service_order['Article']['descripcion']; ?></td>
    </tr>
    <tr>
        <td>Tipo de Trabajo:</td>
        <td><?php echo $service_order['ServiceOrderRow']['tipo_de_trabajo']; ?></td>
    </tr>
    <tr>
        <td>Estado:</td>
        <td><?php echo $service_order['ServiceOrderRowState'][0]['state_id']; ?></td>
    </tr>
   
</table>


<!-- #################################################################################### -->
<!-- #################################################################################### -->
<!-- REPARACIONES -->
<!-- #################################################################################### -->
<!-- #################################################################################### -->
<div class="withBottomLine">
    <h3>Reparaciones </h3>
</div>
<div class="bs-old-docs">
  <div class="container">
    <?php 
        //if($this->Permission->check('ServiceOrderRows.edit')){
            echo $this->Html->link('  Agregar Reparacion', array('controller' => 'ServiceOrderRowRepaires', 'action' => 'add', $service_order['ServiceOrderRow']['id']),  array('class' => 'glyphicon glyphicon-plus-sign btn btn-primary btn-lg' )); 
       // }
    ?>
   
  </div>
</div>

<table width="680px" class="table table-striped">
    <tr>
        <th>Cantidad</th>
        <th>Codigo</th>
        <th>Descripcion</th>
        <th>Comentario</th>
        <th>Fecha</th>
    </tr>
    <?php foreach ($service_order_rows_repaire as $order_repaire): ?>
    <tr>
        <td><?php echo $order_repaire['ServiceOrderRowRepaire']['cantidad']; ?></td>
        <td><?php echo $order_repaire['Repaire']['codigo']; ?></td>
        <td><?php echo $order_repaire['Repaire']['descripcion']; ?></td>
        <td><?php echo $order_repaire['ServiceOrderRowRepaire']['comentario']; ?></td>
        <td><?php echo $order_repaire['ServiceOrderRowRepaire']['fecha']; ?></td>
        <td>
            <?php echo $this->Html->link('Edit', array('controller' => 'ServiceOrderRowRepaires','action' => 'edit', $order_repaire['ServiceOrderRowRepaire']['id'])); ?>
        </td>
        <td>
            <?php echo $this->Html->link('Borrar', array('controller' => 'ServiceOrderRowRepaires','action' => 'delete', $order_repaire['ServiceOrderRowRepaire']['id'])); ?>
            <?php //echo $this->Form->link('Delete', array('action' => 'delete', $order_repaire['ServiceOrderRowRepaires']['id']), array('confirm' => 'Are you sure?')); ?>
        </td>
    </tr>
    <?php endforeach; ?>
    <?php unset($order_repaire); ?>
</table>



<div class="bs-old-docs">
  <div class="container">
    <?php 
        //if($this->Permission->check('ServiceOrderRows.edit')){
            echo $this->Html->link('  Imprimir', array('controller' => 'ServiceOrders', 'action' => 'view', $service_order['ServiceOrderRow']['id']),  array('class' => 'glyphicon glyphicon-print btn btn-primary btn-lg' )); 
       // }


        unset($service_order); 
    ?>
   
  </div>
</div>

